﻿<xsrc:XPropertyValueEditor x:Class="CPPEI.Coolzon.UI.XProperty.Editors.XThicknessEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:xsrc="clr-namespace:CPPEI.Coolzon.UI.XProperty"
             xmlns:ui="clr-namespace:CPPEI.Coolzon.UI"              
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="15"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="15"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="0" ToolTip="左"  Text="←" FontWeight="Bold"/>
        <ui:DoubleTextbox Grid.Row="0" Grid.Column="1"  x:Name="_ctlLeft" Text="0" PreviewKeyDown="_ctlTextBox_PreviewKeyDown"/>

        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Row="1" Grid.Column="0" ToolTip="上"  Text="↑"/>
        <ui:DoubleTextbox Grid.Row="1" Grid.Column="1"  x:Name="_ctlTop" Text="0" PreviewKeyDown="_ctlTextBox_PreviewKeyDown"/>

        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Row="0" Grid.Column="2" ToolTip="右"  Text="→"/>
        <ui:DoubleTextbox Grid.Row="0" Grid.Column="3"  x:Name="_ctlRight" Text="0" PreviewKeyDown="_ctlTextBox_PreviewKeyDown"/>

        <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Row="1" Grid.Column="2" ToolTip="下" Text="↓"/>
        <ui:DoubleTextbox Grid.Row="1" Grid.Column="3"  x:Name="_ctlBottom" Text="0" PreviewKeyDown="_ctlTextBox_PreviewKeyDown"/>
    </Grid>
</xsrc:XPropertyValueEditor>
